package jwr;

public class HelloJava {

	public static void main(String[] args) {
		/*System.out.println("HelloWorld");
		System.out.println("선생님!@ 사랑해요!!");        
		System.out.println("\"시간은 금이라구, 친구!!\"");     */
		//승격(Promotion)
		/*byte x = 5;
		byte y = (byte)-x;
		System.out.println("x는 "+x+" y는 "+y);*/
		
		/*short x = 200, y = 400;
		short z = (short) (x+y);
				
		System.out.println("x는 "+x+" y는 "+y+" z는 "+z);*/
		
		/*String s = Integer.toHexString(100);
		System.out.println(Integer.toBinaryString(1024));
		
		Integer i01 = 100;
		Integer i02 = 10;
		System.out.println(i01 + i02);*/
//		String str = "안녕";
//		String str2 = str.substring(str.length()-1);
//		System.out.println(str2);
		String str = "1";
		System.out.println(Integer.parseInt(str)+2);
		System.out.println(2+str);
	}
}
